package com.ruoyi.emergencyplan.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.emergencyplan.mapper.EpEmergencyPlanMapper;
import com.ruoyi.emergencyplan.domain.EpEmergencyPlan;
import com.ruoyi.emergencyplan.service.IEpEmergencyPlanService;

/**
 * 应急预案——应急预案Service业务层处理
 * 
 * @author hcc
 * @date 2023-12-17
 */
@Service
public class EpEmergencyPlanServiceImpl implements IEpEmergencyPlanService 
{
    @Autowired
    private EpEmergencyPlanMapper epEmergencyPlanMapper;

    /**
     * 查询应急预案——应急预案
     * 
     * @param planId 应急预案——应急预案主键
     * @return 应急预案——应急预案
     */
    @Override
    public EpEmergencyPlan selectEpEmergencyPlanByPlanId(String planId)
    {
        return epEmergencyPlanMapper.selectEpEmergencyPlanByPlanId(planId);
    }

    /**
     * 查询应急预案——应急预案列表
     * 
     * @param epEmergencyPlan 应急预案——应急预案
     * @return 应急预案——应急预案
     */
    @Override
    public List<EpEmergencyPlan> selectEpEmergencyPlanList(EpEmergencyPlan epEmergencyPlan)
    {
        return epEmergencyPlanMapper.selectEpEmergencyPlanList(epEmergencyPlan);
    }

    /**
     * 新增应急预案——应急预案
     * 
     * @param epEmergencyPlan 应急预案——应急预案
     * @return 结果
     */
    @Override
    public int insertEpEmergencyPlan(EpEmergencyPlan epEmergencyPlan)
    {
        return epEmergencyPlanMapper.insertEpEmergencyPlan(epEmergencyPlan);
    }

    /**
     * 修改应急预案——应急预案
     * 
     * @param epEmergencyPlan 应急预案——应急预案
     * @return 结果
     */
    @Override
    public int updateEpEmergencyPlan(EpEmergencyPlan epEmergencyPlan)
    {
        return epEmergencyPlanMapper.updateEpEmergencyPlan(epEmergencyPlan);
    }

    /**
     * 批量删除应急预案——应急预案
     * 
     * @param planIds 需要删除的应急预案——应急预案主键
     * @return 结果
     */
    @Override
    public int deleteEpEmergencyPlanByPlanIds(String[] planIds)
    {
        return epEmergencyPlanMapper.deleteEpEmergencyPlanByPlanIds(planIds);
    }

    /**
     * 删除应急预案——应急预案信息
     * 
     * @param planId 应急预案——应急预案主键
     * @return 结果
     */
    @Override
    public int deleteEpEmergencyPlanByPlanId(String planId)
    {
        return epEmergencyPlanMapper.deleteEpEmergencyPlanByPlanId(planId);
    }
}
